<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>电子商务系统</title>
    <link href="/php/x-admin/Public/home/css/zz.css" rel="stylesheet">
    <link href="/php/x-admin/Public/home/css/login.css" rel="stylesheet" type="text/css">
    <script src="/php/x-admin/Public/home/js/jquery.js"></script>
    <script src="/php/x-admin/Public/home/js/FormValidate.js"></script>
</head>

<body id="body">
<div class="w">
    <!------- 顶部工具栏开始 ------>
    <div class="header clearfix">
        <div class="wrap">
            <div class="logo">
                <a href="/php/x-admin/index.php/Home/Index/index" target="_self" style="width:145px;"></a>
                <span class="h-tit">登录</span>
            </div>
        </div>
    </div>
    <!------- 顶部工具栏结束 ------>
    <script type="text/javascript">

        $(function () {
            $('#Pwd').keydown(function (e) {

                if (e.keyCode == 13) {
                    document.getElementById("btnLogin").click(); //调用登录按钮的登录事件
                }
            });

            $("#btnLogin").click(function () {
                if (Form.Validate($("#UserName").val())) {
                    $("#msg-wrap").addClass("msg-wrap").children("div").addClass("msg-error").html(Form.VC);
                    return false;
                }

                $('form').submit();
            });
        });
    </script>

    <form action="/php/x-admin/index.php/Home/Login/checkLogin" method="post" enctype="multipart/form-data">
        <div class="login">
            <div class="wrap clearfix">
                <div class="fl">
                    <ul id="lubo">

                        <li>
                            <img src="/php/x-admin/Public/home/imgs/shujia.jpg" height="418" width="666">
                        </li>

                    </ul>

                </div>

                <div class="fr">
                    <p class="right"></p>
                    <div class="login-main">
                        <p><strong>欢迎登录</strong><span>还没有账号？<a class="green"
                                                               href="/php/x-admin/index.php/Home/Register/index">立即注册</a></span></p>

                        <div id="msg-wrap">
                            <div></div>
                        </div>

                        <p>
                            <span class="input-phone-icon">&nbsp;</span><input class="input input-phone" id="username"
                                                                               name="username" placeholder="用户名"
                                                                               type="text"><span id="user"></span>
                        </p>
                        <p><span class="input-key-icon">&nbsp;</span><input class="input input-key" id="Pwd"
                                                                            name="password" placeholder="密码"
                                                                            type="password"></p>
                        <p>
                            <input style="width: 100px;" type="text" placeholder="验证码" name="code"
                                   class="input input-yzm">

                            <span><img style="height: 40px;" src="/php/x-admin/index.php/Home/Login/createCode" id="imgcode"
                                       onclick="this.src='/php/x-admin/index.php/Home/Login/createCode?id='+Math.random()"></span>
                        </p>
                        <p><span class="input-key-icon">&nbsp;</span><input class="input input-key" name="flag"
                                                                            type="hidden" value="<?php echo ($flag); ?>"></p>

                        <p><span class="input-key-icon">&nbsp;</span><input class="input input-key" name="goodsid"
                                                                            type="hidden" value="<?php echo ($goodsid); ?>"></p>
                        <p>
                            <input type='image' src='/php/x-admin/Public/home/imgs/111.PNG' name='dl'>
                        </p>
                        <p>
                            <a href="/php/x-admin/index.php/Home/User/email">已有账号，忘记密码？</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </form>

    <!------- 页尾开始 ------>
    <!------- 页尾 ------>
<div style="clear:both;"></div>
<div class="footer" style="margin-top: 20px;">
    <div class="wrap" style="margin:0 auto ;">

        <div class="service"><span>联系电话：010-62137141(传真) 62131450 电子邮箱:changchunying@tom.com</span><span>周一至周五 9:00-17:30</span></div>
        <div class="copyright">
            <p>所有图片均受著作权保护，未经许可任何单位与个人不得使用、复制、转载、摘编，违者必究法律责任。</p>
            <p>京ICP备09113557号 北京金企鹅文化发展中心版权所有</p>

        </div>
    </div>
</div>
</div>
</body>
</html>